package com.design.editor;

import java.util.Stack;

public class DraftsBox {

    private final Stack<ArticleMemento> STACK = new Stack<>();


    public ArticleMemento getMenmento() {
        ArticleMemento articleMemento = STACK.pop();
        return articleMemento;
    }
    public void addMemento(ArticleMemento articleMemento) {
        STACK.push(articleMemento);
    }
}
